import router from "@/router/index.ts";
import { useMainStore } from "@/store/main"
let mainStore:any;
setTimeout(()=>{
  mainStore = useMainStore();
},0)
export default function navTo(url:string, query: any = {}){
  mainStore.addpageStack();
  router.push({ path: url, query}).then(res=>{console.log(res)})
}